﻿#ifndef WAITSWIPCARD_H
#define WAITSWIPCARD_H

#include <QWidget>
#include "Global.h"

namespace Ui {
class WaitSwipCard;
}

class WaitSwipCard : public QWidget
{
    Q_OBJECT
    
public:
    int CardFlag;
    QString A1Card;
    QString A2Card;
    QString UnBingCard;
    CountDownTime* countdown;
    QLabel* time;
    QLabel* signal;
    rf_card *card_WaitSwipCard;
    admin_card acard;
    explicit WaitSwipCard(QWidget *parent = 0);
    ~WaitSwipCard();
signals:
    void UnBindingSignal(int flag);
    void BindisOk(int flag);
public slots:
    void UnBindCardMode(int SwipFlag_UnBind, QString UnBinding_CardNum, QString A1, QString A2);
    void recvData(QString data, int value, unsigned int restMoney);
    void ReferAdministerCardMod(int CardReferMod, QString A1, QString A2);
    void BindCardMode(int SwipFlag_Bind, QLineEdit *edit, QString A1, QString A2);
    void countdownOver();
private slots:
    void CountDownStart(int);
private:    
    unsigned char temp_cardNum[5][8];
    Ui::WaitSwipCard *ui;
};

#endif // WAITSWIPCARD_H
